import request from '@/utils/request'
import { HttpResponse } from '@/@types'

export default class HealthReportApi {
  /**
   * @description: 健康报告
   * @param {*} params
   * @return {*}
   * @author: zhangh
   */
  static async getHealthReport(params?: {
    id: string | number // 患者id
    sn: string | number // 设备sn
    timestamp: string | number // 时间戳
    auth: string | number // 权限
    idCardNo: string | number // 身份证号
  }): Promise<HttpResponse> {
    return request({
      url: '/api/chroniccare/residents/getHealthReportByIdCard',
      method: 'get',
      params
    })
  }
}
